﻿using System;
using System.Windows.Forms;

namespace RaGE
{
    public partial class LostQuestWindow : Form
    {
        public LostQuestWindow()
        {
            InitializeComponent();
        }

        private void SelectQuest(object sender, EventArgs e)
        {
            if (((ListBox) sender).SelectedIndex > -1 && !((ListBox) sender).SelectedItem.ToString().StartsWith("+"))
                webBrowser.Url = new Uri("http://www.pwdatabase.com/pwi/quest/" + ((ListBox) sender).SelectedItem);
        }
    }
}
